package com.bat.spring.normalbean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * @author: liusen
 * @date: 2022-04-10
 * @desc:
 **/
@Service
public class AppleService {

	@Autowired
	private Apple apple;

	public AppleService() {
		System.out.println(apple);
		System.out.println(" AppleService() 执行了");
	}

	//生命周期初始化回调方法
	@PostConstruct
	public void zinit(){
		System.out.println("AppleService PostConstruct");
	}
}
